public class NullPointerExc {
	public static void main(String[] args) throws Exception {

		String str = null;

		if (args.length > 0)
			str = "asd";

		String[] strArr;
		try {
			strArr = str.split(",");
		} catch (Exception e) {
			throw new Exception("main metodu : " + e.getMessage());
			// return;

			// strArr = new String[2];
			// strArr[0] = "asd";
			// strArr[1] = "qwe";
		}
		System.out.println("str : " + str);

	}
}
